//
//  ServiceAssignedViewController.h
//  HondaPro_2
//
//  Created by ht on 13-7-1.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ServiceTableViewCell.h"
#import "ServiceCompileViewController.h"
#import "PaigongKuaiView.h"
#import "PaigongXiuGaiViewController.h"
#import "ManagementViewController.h"
#import "DDPopoverBackgroundView.h"

@interface ServiceAssignedViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UIScrollViewDelegate,ContentViewControllerDelegate>
{
    NSString *_jobSheetId;
    NSMutableDictionary *_naoguoqu;
    NSString *_itemNo;
    
    NSString *_panDuanGchang;//判断工场显示视图
    NSString *_weiXiutype;//维修分类
    
    NSNumber *_dayBegin;
    NSNumber *_dayend;
    
    UIViewController *panleCon;
    popContentViewController *contentCon;
    
    float beging;
    
    NSString *timeStr;
}

//由接待服务界面进行派工的标志STR
/*
 如果是由Service跳过来的
 self.jumpByServiceUI = @"jumpByServiceUI";
 否则
 self.jumpByServiceUI = nil;
 */
@property (nonatomic,strong) NSString *jumpByServiceUI;
@property (nonatomic,strong) NSDictionary *dicDataJumpByServiceUI;
-(void)paigongBtnJumpedByServiceUIPressed;

@property(nonatomic,strong)NSNumber *startingPoint;
@property(nonatomic,strong)NSNumber *endPoint;
@property(nonatomic,strong)NSNumber *viewWide;
@property(nonatomic,strong)ServiceCompileViewController *serviceCompileViewController;
@property(nonatomic,strong)ServiceTableViewCell *serviceTableViewCell;
@property(nonatomic,strong)PaigongKuaiView *paigongKuaiView;
@property(nonatomic,strong)PaigongXiuGaiViewController *paigongXiuGaiViewController;
//@property(nonatomic,strong)ManagementViewController *managementViewController;
@property(nonatomic,strong)UIDatePicker *datePicker;
@property(nonatomic,strong)UIPopoverController *popCon;
@property(nonatomic,strong)NSString *dateString;
@property(nonatomic,strong)UIButton *chakanBtn;
@property(nonatomic,strong)NSString *credentials;

@property(nonatomic,strong)UIScrollView *serviceScrollView;
@property(nonatomic,strong)UIScrollView *transverseScrollView;

@property(nonatomic,strong)UITableView *ServiceTableView;
@property(nonatomic,strong)UITableView *TimeZoneTableView;
@property(nonatomic,strong)UITableView *TimeZoneBanJin;
@property(nonatomic,strong)UITableView *TimeZonePenQi;

@property(nonatomic,strong)UILabel *tableViewCellLabel;

@property(nonatomic,strong)UIButton *chooseTableButton1;
@property(nonatomic,strong)UIButton *chooseTableButton2;
@property(nonatomic,strong)UIButton *chooseTableButton3;
@property(nonatomic,strong)UIButton *chooseTableButton4;

@property(nonatomic,strong)UIButton *paigongButton;

@property(nonatomic,strong)UIView *jiXiuBackground;
@property(nonatomic,strong)UIView *banJinBackground;
@property(nonatomic,strong)UIView *penQiBackground;

@property(nonatomic,strong)UIView *timeTiaoView;
@property(nonatomic,strong)UILabel *timeTiaoLabel;

@property(nonatomic,strong)UIButton *homeButton;
@property(nonatomic,strong)UIButton *homeButton1;

@property(nonatomic,strong)NSString *timeLine;

//派工信息列表字典
@property(nonatomic,strong)NSDictionary *serviceTable;
@property(nonatomic,strong)NSMutableArray *serviceTableArrayone;
@property(nonatomic,strong)NSMutableArray *serviceTableArraytwo;
@property(nonatomic,strong)NSMutableArray *serviceTableArraythree;
@property(nonatomic,strong)NSMutableArray *serviceTableArrayfour;
@property(nonatomic,strong)NSMutableArray *serviceTableArrayfive;
@property(nonatomic,strong)NSMutableArray *serviceTableArraysix;
@property(nonatomic,strong)NSMutableArray *serviceTableArrayseven;
@property(nonatomic,strong)NSMutableArray *serviceTableArrayeight;
@property(nonatomic,strong)NSMutableArray *serviceTableArraynine;
//deta
@property(nonatomic,strong)NSMutableArray *listRowCollection;

@property(nonatomic,strong)NSMutableDictionary *passDictionary;

@property(nonatomic,strong)UIView *gongweipaiView;
@property(nonatomic,strong)UILabel *gongweipaiLabel;
@property(nonatomic,strong)NSMutableArray *workStationNameArray;
@property(nonatomic,strong)UILabel *workStationNameLabel;

@property(nonatomic,strong)NSMutableArray *listDisArray;//dispatchingList
@property(nonatomic,strong)NSString *paigongkaishi;
@property(nonatomic,strong)NSString *paigongjieshu;

//接收新增的数据
@property(nonatomic,strong)NSString *estimatedStartTime;
@property(nonatomic,strong)NSString *estimatedEndTime;
//工位
@property(nonatomic,strong)UIView *workBackView;
@property(nonatomic,strong)NSMutableArray *workStationArray;
@property(nonatomic,strong)NSMutableArray *workStationLabelArray;
@property(nonatomic,strong)NSMutableDictionary *workStationDit;

@property(nonatomic,strong)NSMutableArray *workStationIsPaig;

@property(nonatomic,strong)UIButton *timeQuery;

@property(nonatomic,strong)UIView *timeLineView;
-(void)adddispatchingX:(NSString *)estimatedStartTime adddispatchingY:(NSString *)estimatedEndTime;

-(void)addNotification;
-(void)removeNotification;

-(void)modifyInstead;

-(void)caoNiMaZhaoShaoFei;

//派工 的数据信息
-(void)paigongByDispatchingData:(NSDictionary *)dicDispatchingData;

@end
